import App from './App'
import store from './store'
import Cache from './utils/cache'
import util from 'utils/util'
import configs from './config/app.js'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'

let mpShare = require('@/uni_modules/uview-ui/libs/mixin/mpShare.js');
Vue.mixin(mpShare)

import Mixin from './polyfill/mixins';
Vue.mixin(Mixin);

import uView from '@/uni_modules/uview-ui'
Vue.use(uView)

Vue.prototype.$util = util;
Vue.prototype.$config = configs;
Vue.prototype.$Cache = Cache;


Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App,
	store,
	Cache,
})
app.$mount()
// #endif

